import React, { Component, PropTypes } from 'react';
import ReactDOM, { render } from 'react-dom';
import { Provider } from 'react-redux';

import routes from './router/index.js'
import configureStore from './redux/store/configureStore';
const store = configureStore();

import '../static/css/normalize.less'
import '../static/css/common.css'
const MOUNT_NODE = document.getElementById('app')

store.subscribe(function () {
    // console.log(store.getState());
});

ReactDOM.render(
  <Provider store={store}>
    {routes}
  </Provider>,
  MOUNT_NODE
);
